827689d6e2da056cf58f5098d0914ce81b14d50d,opennms-webapp/src/main/java/org/opennms/web/svclayer/support/DefaultSurveillanceService.java,DefaultSurveillanceService,createAggregateStatus,#Collection#Collection#,147

Before Change


        status = new AggregateStatus();
        status.setDownEntityCount(computeDownCount(nodes));
        status.setDownEntityCount(nodes.size());
        status.setStatus(computeStatus(nodes, status));
        return status;
    }

After Change


        AggregateStatus status;
        Collection<OnmsNode> nodes = m_nodeDao.findAllByCategoryLists(rowCatNames, colCatNames);
        status = new AggregateStatus();
        if (nodes == null || nodes.isEmpty()) {
            status.setDownEntityCount(0);
            status.setTotalEntityCount(0);
            status.setStatus(AggregateStatus.ALL_NODES_UP);
        } else {
            status.setDownEntityCount(computeDownCount(nodes));
            status.setTotalEntityCount(nodes.size());
            status.setStatus(computeStatus(nodes, status));
        }
        return status;
    }